package com.topscomm.meet.job;

import com.topscomm.meet.service.IMeetManageService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description: 提醒上传会议纪要
 * @author: chengengwei
 * @date: 2021-2-23
 * @modify:
 */
@JobHandler("meetRemindUploadRecordJob")
@Component
public class MeetRemindUploadRecordJob extends IJobHandler {
	@Autowired
	private IMeetManageService meetManageService;

	/**
	 * @description: 判断没有上传会议纪要的会议记录是否需要发送消息提醒，若需要则发送通知
	 * @author: chengengwei
	 * @date: 2021-2-23
	 * @modify:
	 */
	@Override
	public ReturnT<String> execute(String param) throws Exception {
		meetManageService.remindUploadRecord();
		return ReturnT.SUCCESS;
	}

}
